package org.u2ml.app.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.springframework.stereotype.Component;
import org.u2ml.app.domain.RESTResponse;

@Component
@Path("/comet")
public class CometResource {

	@GET
	@Produces(MediaType.TEXT_XML)
	@Path("/wait")
	public RESTResponse sleep(@QueryParam("SESSIONID") Long oid) {
		RESTResponse response = new RESTResponse();
		// Passage en attente.
		return response;
	}

}
